import { Navigate } from 'react-router-dom'
import About from '../pages/About'
import Home from '../pages/Home'
import Login from '../pages/Login'
const routes = [
    {
        path: '/',
        name: 'Login',
        element: <Navigate to="/login" />,
    },
    {
        path: '/about',
        name: 'About',
        element: <About/>,
    },
    {
        path: '/home',
        name: 'Home',
        element: <Home/>,
    },
    {
        path: '/login',
        name: 'Login',
        element: <Login/>,
     }
]
export default routes